<!DOCTYPE html>
<html lang="en">

<head>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">

    <title><?php echo $title; ?></title>

    <!-- Bootstrap Core CSS -->
    <link href="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">

    <!-- MetisMenu CSS -->
    <link href="sb2/vendor/metisMenu/metisMenu.min.css" rel="stylesheet">

    <!-- Custom CSS -->
    <link href="sb2/dist/css/sb-admin-2.css" rel="stylesheet">

    <!-- Custom Fonts -->
    <link href="sb2/vendor/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">

    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
        <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
        <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->

</head>

<body>

    <div id="wrapper">

        <!-- Navigation -->
        <nav class="navbar navbar-default navbar-static-top" role="navigation" style="margin-bottom: 0">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                    <span class="sr-only">菜单</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <img alt="" src="img/people.png" class="img-circle" width="50" height="50">
                <a class="navbar-brand" href="<?php echo $_url; ?>"><?php echo $title; ?>(登录321次)</a>
            </div>
            <!-- /.navbar-header -->

            <ul class="nav navbar-top-links navbar-right">
                <li class="dropdown">
                    <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                        <i class="fa fa-envelope fa-fw"></i> <i class="fa fa-caret-down"></i>
                    </a>
                    <ul class="dropdown-menu dropdown-messages">
                        <li>
                            <a href="#">
                                <div>
                                    <strong>John Smith</strong>
                                    <span class="pull-right text-muted">
                                        <em>Yesterday</em>
                                    </span>
                                </div>
                                <div>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque eleifend...</div>
                            </a>
                        </li>
                        <li class="divider"></li>
                        <li>
                            <a href="#">
                                <div>
                                    <strong>John Smith</strong>
                                    <span class="pull-right text-muted">
                                        <em>Yesterday</em>
                                    </span>
                                </div>
                                <div>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque eleifend...</div>
                            </a>
                        </li>
                        <li class="divider"></li>
                        <li>
                            <a href="#">
                                <div>
                                    <strong>John Smith</strong>
                                    <span class="pull-right text-muted">
                                        <em>Yesterday</em>
                                    </span>
                                </div>
                                <div>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque eleifend...</div>
                            </a>
                        </li>
                        <li class="divider"></li>
                        <li>
                            <a class="text-center" href="#">
                                <strong>全部信息</strong>
                                <i class="fa fa-angle-right"></i>
                            </a>
                        </li>
                    </ul>
                    <!-- /.dropdown-messages -->
                </li>
                <!-- /.dropdown -->
                <li class="dropdown">
                    <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                        <i class="fa fa-tasks fa-fw"></i> <i class="fa fa-caret-down"></i>
                    </a>
                    <ul class="dropdown-menu dropdown-tasks">
                        <li>
                            <a href="#">
                                <div>
                                    <p>
                                        <strong>Task 1</strong>
                                        <span class="pull-right text-muted">40% Complete</span>
                                    </p>
                                    <div class="progress progress-striped active">
                                        <div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100" style="width: 40%">
                                            <span class="sr-only">40% Complete (success)</span>
                                        </div>
                                    </div>
                                </div>
                            </a>
                        </li>
                        <li class="divider"></li>
                        <li>
                            <a href="#">
                                <div>
                                    <p>
                                        <strong>Task 2</strong>
                                        <span class="pull-right text-muted">20% Complete</span>
                                    </p>
                                    <div class="progress progress-striped active">
                                        <div class="progress-bar progress-bar-info" role="progressbar" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100" style="width: 20%">
                                            <span class="sr-only">20% Complete</span>
                                        </div>
                                    </div>
                                </div>
                            </a>
                        </li>
                        <li class="divider"></li>
                        <li>
                            <a href="#">
                                <div>
                                    <p>
                                        <strong>Task 3</strong>
                                        <span class="pull-right text-muted">60% Complete</span>
                                    </p>
                                    <div class="progress progress-striped active">
                                        <div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style="width: 60%">
                                            <span class="sr-only">60% Complete (warning)</span>
                                        </div>
                                    </div>
                                </div>
                            </a>
                        </li>
                        <li class="divider"></li>
                        <li>
                            <a href="#">
                                <div>
                                    <p>
                                        <strong>Task 4</strong>
                                        <span class="pull-right text-muted">80% Complete</span>
                                    </p>
                                    <div class="progress progress-striped active">
                                        <div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="80" aria-valuemin="0" aria-valuemax="100" style="width: 80%">
                                            <span class="sr-only">80% Complete (danger)</span>
                                        </div>
                                    </div>
                                </div>
                            </a>
                        </li>
                        <li class="divider"></li>
                        <li>
                            <a class="text-center" href="#">
                                <strong>See All Tasks</strong>
                                <i class="fa fa-angle-right"></i>
                            </a>
                        </li>
                    </ul>
                    <!-- /.dropdown-tasks -->
                </li>
                <!-- /.dropdown -->
                <li class="dropdown">
                    <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                        <i class="fa fa-bell fa-fw"></i> <i class="fa fa-caret-down"></i>
                    </a>
                    <ul class="dropdown-menu dropdown-alerts">
                        <li>
                            <a href="#">
                                <div>
                                    <i class="fa fa-comment fa-fw"></i> New Comment
                                    <span class="pull-right text-muted small">4 minutes ago</span>
                                </div>
                            </a>
                        </li>
                        <li class="divider"></li>
                        <li>
                            <a href="#">
                                <div>
                                    <i class="fa fa-twitter fa-fw"></i> 3 New Followers
                                    <span class="pull-right text-muted small">12 minutes ago</span>
                                </div>
                            </a>
                        </li>
                        <li class="divider"></li>
                        <li>
                            <a href="#">
                                <div>
                                    <i class="fa fa-envelope fa-fw"></i> Message Sent
                                    <span class="pull-right text-muted small">4 minutes ago</span>
                                </div>
                            </a>
                        </li>
                        <li class="divider"></li>
                        <li>
                            <a href="#">
                                <div>
                                    <i class="fa fa-tasks fa-fw"></i> New Task
                                    <span class="pull-right text-muted small">4 minutes ago</span>
                                </div>
                            </a>
                        </li>
                        <li class="divider"></li>
                        <li>
                            <a href="#">
                                <div>
                                    <i class="fa fa-upload fa-fw"></i> Server Rebooted
                                    <span class="pull-right text-muted small">4 minutes ago</span>
                                </div>
                            </a>
                        </li>
                        <li class="divider"></li>
                        <li>
                            <a class="text-center" href="#">
                                <strong>See All Alerts</strong>
                                <i class="fa fa-angle-right"></i>
                            </a>
                        </li>
                    </ul>
                    <!-- /.dropdown-alerts -->
                </li>
                <!-- /.dropdown -->
                <li class="dropdown">
                    <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                        <i class="fa fa-user fa-fw"></i>徐秀峰 <i class="fa fa-caret-down"></i>
                    </a>
                    <ul class="dropdown-menu dropdown-user">
                        <li><a href="javascript:navObj.userinfo();"><i class="fa fa-user fa-fw"></i> 用户信息</a>
                        </li>
                        <li><a href="javascript:navObj.setting();"><i class="fa fa-gear fa-fw"></i> 设置</a>
                        </li>
                        <li class="divider"></li>
                        <li><a href="<?php echo $_url; ?>out"><i class="fa fa-sign-out fa-fw"></i> 安全退出</a>
                        </li>
                    </ul>
                    <!-- /.dropdown-user -->
                </li>
                <!-- /.dropdown -->
            </ul>
            <!-- /.navbar-top-links -->

            <div class="navbar-default sidebar" role="navigation">
                <div class="sidebar-nav navbar-collapse">
                    <ul class="nav" id="side-menu">
                        <li class="sidebar-search">
                            <div class="input-group custom-search-form">
                                <input type="text" class="form-control" placeholder="搜索...">
                                <span class="input-group-btn">
                                    <button class="btn btn-default" type="button">
                                        <i class="fa fa-search"></i>
                                    </button>
                                </span>
                            </div>
                            <!-- /input-group -->
                        </li>
                                                <li>
                           	<a href="/?admin" ><i class="fa fa-edit fa-fw"></i> 首页</a>
                        </li>
                                                <li>
                           	<a href="/?sysUserManager" ><i class="fa fa-table fa-fw"></i> 用户管理</a>
                        </li>
                                                <li>
                           	<a href="/?sysQxManager" ><i class="fa fa-fw fa-dashboard"></i> 权限管理</a>
                        </li>
                                                <li>
                           	<a href="/?groupManager" ><i class="fa fa-fw fa-dashboard"></i> 群组管理</a>
                        </li>
                                                <li>
                           	<a href="/?wBook" ><i class="fa fa-bar-chart-o fa-fw"></i> 教职工通讯录</a>
                        </li>
                                                <li>
                           	<a href="/?toDoPrivate" ><i class="fa fa-sitemap fa-fw"></i> 私人待办事项</a>
                        </li>
                                                <li>
                           	<a href="/?upSchoolRoll" ><i class="fa fa-wrench fa-fw"></i> 学生信息上传</a>
                        </li>
                                                <li>
                           	<a href="/?schoolRollManager" ><i class="fa fa-wrench fa-fw"></i> 学生信息管理</a>
                        </li>
                                                <li>
                           	<a href="/?stuEventManager" ><i class="fa fa-wrench fa-fw"></i> 学生事务管理</a>
                        </li>
                                            </ul>
                </div>
                <!-- /.sidebar-collapse -->
            </div>
            <!-- /.navbar-static-side -->
        </nav>    
<!-- DataTables Responsive CSS -->
    <link href="sb2/vendor/datatables-responsive/dataTables.responsive.css" rel="stylesheet">

        <!-- Page Content -->
        <div id="page-wrapper">
            <div class="container-fluid">
                <div class="row">
                <div class="col-lg-12">
                    <div class="panel panel-default">
                        <div class="panel-heading">
                            权限管理
                            <button id=build type=button class='btn btn-success' data-toggle='modal'  onclick='append()'><span class='glyphicon glyphicon-plus' aria-hidden='true'></span>添加</button>&nbsp;                        </div>
                        <!-- /.panel-heading -->
                        <div class="panel-body">
                            <table width="100%" class="table table-striped table-bordered table-hover" id="dataTables-example">
                                <thead>
                                    <tr>
                                        <th>用户名</th>
                                        <th>姓名</th>
                                        <th>栏目</th>
                                        <th>权限</th>
                                        <th>添加时间</th>
                                    <th>操作</th>                                    </tr>
                                </thead>
                                <tbody>
                                	                                    <tr class="odd gradeA" id='1'>
                                    	<td><a href='javascript:update(1)'>admin</a></td>
                                        <td>管理员</td>
                                        <td>权限管理</td>
                                        <td>增删改查</td>
                                        <td>2016-09-30 02:27:03</td>
                                    	<td><a href='javascript:del(1)' class='glyphicon glyphicon-minus-sign' role='menuitem' tabindex='-1' style='color:red;'></a></td>                                    </tr>
                                	                                    <tr class="even gradeA" id='19'>
                                    	<td><a href='javascript:update(19)'>admin</a></td>
                                        <td>管理员</td>
                                        <td>教职工通讯录</td>
                                        <td>增删改查</td>
                                        <td>2016-10-31 10:35:46</td>
                                    	<td><a href='javascript:del(19)' class='glyphicon glyphicon-minus-sign' role='menuitem' tabindex='-1' style='color:red;'></a></td>                                    </tr>
                                	                                    <tr class="odd gradeA" id='2'>
                                    	<td><a href='javascript:update(2)'>admin</a></td>
                                        <td>管理员</td>
                                        <td>用户管理</td>
                                        <td>增删改查</td>
                                        <td>2016-09-30 12:51:38</td>
                                    	<td><a href='javascript:del(2)' class='glyphicon glyphicon-minus-sign' role='menuitem' tabindex='-1' style='color:red;'></a></td>                                    </tr>
                                	                                    <tr class="even gradeA" id='10'>
                                    	<td><a href='javascript:update(10)'>admin</a></td>
                                        <td>管理员</td>
                                        <td>首页</td>
                                        <td>增删改查</td>
                                        <td>2016-10-26 02:31:34</td>
                                    	<td><a href='javascript:del(10)' class='glyphicon glyphicon-minus-sign' role='menuitem' tabindex='-1' style='color:red;'></a></td>                                    </tr>
                                	                                    <tr class="odd gradeA" id='16'>
                                    	<td><a href='javascript:update(16)'>admin</a></td>
                                        <td>管理员</td>
                                        <td>学生信息上传</td>
                                        <td>增删改查</td>
                                        <td>2016-10-26 14:30:34</td>
                                    	<td><a href='javascript:del(16)' class='glyphicon glyphicon-minus-sign' role='menuitem' tabindex='-1' style='color:red;'></a></td>                                    </tr>
                                	                                    <tr class="even gradeA" id='20'>
                                    	<td><a href='javascript:update(20)'>admin</a></td>
                                        <td>管理员</td>
                                        <td>私人待办事项</td>
                                        <td>增删改查</td>
                                        <td>2016-10-31 10:59:34</td>
                                    	<td><a href='javascript:del(20)' class='glyphicon glyphicon-minus-sign' role='menuitem' tabindex='-1' style='color:red;'></a></td>                                    </tr>
                                	                                    <tr class="odd gradeA" id='31'>
                                    	<td><a href='javascript:update(31)'>admin</a></td>
                                        <td>管理员</td>
                                        <td>群组管理</td>
                                        <td>增删改查</td>
                                        <td>2016-12-02 13:49:46</td>
                                    	<td><a href='javascript:del(31)' class='glyphicon glyphicon-minus-sign' role='menuitem' tabindex='-1' style='color:red;'></a></td>                                    </tr>
                                	                                    <tr class="even gradeA" id='22'>
                                    	<td><a href='javascript:update(22)'>xxfxxf</a></td>
                                        <td>徐秀峰</td>
                                        <td>权限管理</td>
                                        <td>增删改查</td>
                                        <td>2016-11-02 20:56:11</td>
                                    	<td><a href='javascript:del(22)' class='glyphicon glyphicon-minus-sign' role='menuitem' tabindex='-1' style='color:red;'></a></td>                                    </tr>
                                	                                    <tr class="odd gradeA" id='18'>
                                    	<td><a href='javascript:update(18)'>xxfxxf</a></td>
                                        <td>徐秀峰</td>
                                        <td>教职工通讯录</td>
                                        <td>增删改查</td>
                                        <td>2016-10-31 00:01:14</td>
                                    	<td><a href='javascript:del(18)' class='glyphicon glyphicon-minus-sign' role='menuitem' tabindex='-1' style='color:red;'></a></td>                                    </tr>
                                	                                    <tr class="even gradeA" id='23'>
                                    	<td><a href='javascript:update(23)'>xxfxxf</a></td>
                                        <td>徐秀峰</td>
                                        <td>用户管理</td>
                                        <td>增删改查</td>
                                        <td>2016-11-02 20:56:21</td>
                                    	<td><a href='javascript:del(23)' class='glyphicon glyphicon-minus-sign' role='menuitem' tabindex='-1' style='color:red;'></a></td>                                    </tr>
                                	                                    <tr class="odd gradeA" id='45'>
                                    	<td><a href='javascript:update(45)'>xxfxxf</a></td>
                                        <td>徐秀峰</td>
                                        <td>首页</td>
                                        <td>增删改查</td>
                                        <td>2016-12-08 13:36:16</td>
                                    	<td><a href='javascript:del(45)' class='glyphicon glyphicon-minus-sign' role='menuitem' tabindex='-1' style='color:red;'></a></td>                                    </tr>
                                	                                    <tr class="even gradeA" id='17'>
                                    	<td><a href='javascript:update(17)'>xxfxxf</a></td>
                                        <td>徐秀峰</td>
                                        <td>学生信息上传</td>
                                        <td>增删改查</td>
                                        <td>2016-10-26 14:30:48</td>
                                    	<td><a href='javascript:del(17)' class='glyphicon glyphicon-minus-sign' role='menuitem' tabindex='-1' style='color:red;'></a></td>                                    </tr>
                                	                                    <tr class="odd gradeA" id='21'>
                                    	<td><a href='javascript:update(21)'>xxfxxf</a></td>
                                        <td>徐秀峰</td>
                                        <td>私人待办事项</td>
                                        <td>增删改查</td>
                                        <td>2016-10-31 10:59:43</td>
                                    	<td><a href='javascript:del(21)' class='glyphicon glyphicon-minus-sign' role='menuitem' tabindex='-1' style='color:red;'></a></td>                                    </tr>
                                	                                    <tr class="even gradeA" id='24'>
                                    	<td><a href='javascript:update(24)'>xxfxxf</a></td>
                                        <td>徐秀峰</td>
                                        <td>学生信息管理</td>
                                        <td>增改查</td>
                                        <td>2016-11-28 01:21:24</td>
                                    	<td><a href='javascript:del(24)' class='glyphicon glyphicon-minus-sign' role='menuitem' tabindex='-1' style='color:red;'></a></td>                                    </tr>
                                	                                    <tr class="odd gradeA" id='29'>
                                    	<td><a href='javascript:update(29)'>xxfxxf</a></td>
                                        <td>徐秀峰</td>
                                        <td>学生事务管理</td>
                                        <td>增删改查</td>
                                        <td>2016-11-29 01:12:54</td>
                                    	<td><a href='javascript:del(29)' class='glyphicon glyphicon-minus-sign' role='menuitem' tabindex='-1' style='color:red;'></a></td>                                    </tr>
                                	                                    <tr class="even gradeA" id='30'>
                                    	<td><a href='javascript:update(30)'>xxfxxf</a></td>
                                        <td>徐秀峰</td>
                                        <td>群组管理</td>
                                        <td>增删改查</td>
                                        <td>2016-12-02 11:36:49</td>
                                    	<td><a href='javascript:del(30)' class='glyphicon glyphicon-minus-sign' role='menuitem' tabindex='-1' style='color:red;'></a></td>                                    </tr>
                                	                                    <tr class="odd gradeA" id='25'>
                                    	<td><a href='javascript:update(25)'>lianlian</a></td>
                                        <td>杨练</td>
                                        <td>教职工通讯录</td>
                                        <td>查</td>
                                        <td>2016-11-28 11:42:47</td>
                                    	<td><a href='javascript:del(25)' class='glyphicon glyphicon-minus-sign' role='menuitem' tabindex='-1' style='color:red;'></a></td>                                    </tr>
                                	                                    <tr class="even gradeA" id='27'>
                                    	<td><a href='javascript:update(27)'>lianlian</a></td>
                                        <td>杨练</td>
                                        <td>学生信息上传</td>
                                        <td>增删改查</td>
                                        <td>2016-11-28 11:43:38</td>
                                    	<td><a href='javascript:del(27)' class='glyphicon glyphicon-minus-sign' role='menuitem' tabindex='-1' style='color:red;'></a></td>                                    </tr>
                                	                                    <tr class="odd gradeA" id='26'>
                                    	<td><a href='javascript:update(26)'>lianlian</a></td>
                                        <td>杨练</td>
                                        <td>私人待办事项</td>
                                        <td>增删改查</td>
                                        <td>2016-11-28 11:43:07</td>
                                    	<td><a href='javascript:del(26)' class='glyphicon glyphicon-minus-sign' role='menuitem' tabindex='-1' style='color:red;'></a></td>                                    </tr>
                                	                                    <tr class="even gradeA" id='28'>
                                    	<td><a href='javascript:update(28)'>lianlian</a></td>
                                        <td>杨练</td>
                                        <td>学生信息管理</td>
                                        <td>增改查</td>
                                        <td>2016-11-28 11:43:56</td>
                                    	<td><a href='javascript:del(28)' class='glyphicon glyphicon-minus-sign' role='menuitem' tabindex='-1' style='color:red;'></a></td>                                    </tr>
                                	                                    <tr class="odd gradeA" id='32'>
                                    	<td><a href='javascript:update(32)'>administrator</a></td>
                                        <td>魏恒</td>
                                        <td>教职工通讯录</td>
                                        <td>增删改查</td>
                                        <td>2016-12-06 12:21:28</td>
                                    	<td><a href='javascript:del(32)' class='glyphicon glyphicon-minus-sign' role='menuitem' tabindex='-1' style='color:red;'></a></td>                                    </tr>
                                	                                    <tr class="even gradeA" id='35'>
                                    	<td><a href='javascript:update(35)'>administrator</a></td>
                                        <td>魏恒</td>
                                        <td>学生信息上传</td>
                                        <td>增删改查</td>
                                        <td>2016-12-06 12:21:58</td>
                                    	<td><a href='javascript:del(35)' class='glyphicon glyphicon-minus-sign' role='menuitem' tabindex='-1' style='color:red;'></a></td>                                    </tr>
                                	                                    <tr class="odd gradeA" id='33'>
                                    	<td><a href='javascript:update(33)'>administrator</a></td>
                                        <td>魏恒</td>
                                        <td>私人待办事项</td>
                                        <td>增删改查</td>
                                        <td>2016-12-06 12:21:38</td>
                                    	<td><a href='javascript:del(33)' class='glyphicon glyphicon-minus-sign' role='menuitem' tabindex='-1' style='color:red;'></a></td>                                    </tr>
                                	                                    <tr class="even gradeA" id='34'>
                                    	<td><a href='javascript:update(34)'>administrator</a></td>
                                        <td>魏恒</td>
                                        <td>学生信息管理</td>
                                        <td>增改查</td>
                                        <td>2016-12-06 12:21:49</td>
                                    	<td><a href='javascript:del(34)' class='glyphicon glyphicon-minus-sign' role='menuitem' tabindex='-1' style='color:red;'></a></td>                                    </tr>
                                	                                    <tr class="odd gradeA" id='36'>
                                    	<td><a href='javascript:update(36)'>administrator</a></td>
                                        <td>魏恒</td>
                                        <td>学生事务管理</td>
                                        <td>增删改查</td>
                                        <td>2016-12-06 12:22:08</td>
                                    	<td><a href='javascript:del(36)' class='glyphicon glyphicon-minus-sign' role='menuitem' tabindex='-1' style='color:red;'></a></td>                                    </tr>
                                	                                    <tr class="even gradeA" id='43'>
                                    	<td><a href='javascript:update(43)'>administrator</a></td>
                                        <td>魏恒</td>
                                        <td>群组管理</td>
                                        <td>增删改查</td>
                                        <td>2016-12-07 12:52:53</td>
                                    	<td><a href='javascript:del(43)' class='glyphicon glyphicon-minus-sign' role='menuitem' tabindex='-1' style='color:red;'></a></td>                                    </tr>
                                	                                    <tr class="odd gradeA" id='37'>
                                    	<td><a href='javascript:update(37)'>leihongbo</a></td>
                                        <td>雷洪波</td>
                                        <td>教职工通讯录</td>
                                        <td>增删改查</td>
                                        <td>2016-12-07 12:49:39</td>
                                    	<td><a href='javascript:del(37)' class='glyphicon glyphicon-minus-sign' role='menuitem' tabindex='-1' style='color:red;'></a></td>                                    </tr>
                                	                                    <tr class="even gradeA" id='44'>
                                    	<td><a href='javascript:update(44)'>leihongbo</a></td>
                                        <td>雷洪波</td>
                                        <td>首页</td>
                                        <td>增删改查</td>
                                        <td>2016-12-07 16:54:41</td>
                                    	<td><a href='javascript:del(44)' class='glyphicon glyphicon-minus-sign' role='menuitem' tabindex='-1' style='color:red;'></a></td>                                    </tr>
                                	                                    <tr class="odd gradeA" id='38'>
                                    	<td><a href='javascript:update(38)'>leihongbo</a></td>
                                        <td>雷洪波</td>
                                        <td>学生信息上传</td>
                                        <td>增删改查</td>
                                        <td>2016-12-07 12:49:47</td>
                                    	<td><a href='javascript:del(38)' class='glyphicon glyphicon-minus-sign' role='menuitem' tabindex='-1' style='color:red;'></a></td>                                    </tr>
                                	                                    <tr class="even gradeA" id='39'>
                                    	<td><a href='javascript:update(39)'>leihongbo</a></td>
                                        <td>雷洪波</td>
                                        <td>私人待办事项</td>
                                        <td>增删改查</td>
                                        <td>2016-12-07 12:49:55</td>
                                    	<td><a href='javascript:del(39)' class='glyphicon glyphicon-minus-sign' role='menuitem' tabindex='-1' style='color:red;'></a></td>                                    </tr>
                                	                                    <tr class="odd gradeA" id='40'>
                                    	<td><a href='javascript:update(40)'>leihongbo</a></td>
                                        <td>雷洪波</td>
                                        <td>学生信息管理</td>
                                        <td>增删改查</td>
                                        <td>2016-12-07 12:50:06</td>
                                    	<td><a href='javascript:del(40)' class='glyphicon glyphicon-minus-sign' role='menuitem' tabindex='-1' style='color:red;'></a></td>                                    </tr>
                                	                                    <tr class="even gradeA" id='42'>
                                    	<td><a href='javascript:update(42)'>leihongbo</a></td>
                                        <td>雷洪波</td>
                                        <td>群组管理</td>
                                        <td>增删改查</td>
                                        <td>2016-12-07 12:51:12</td>
                                    	<td><a href='javascript:del(42)' class='glyphicon glyphicon-minus-sign' role='menuitem' tabindex='-1' style='color:red;'></a></td>                                    </tr>
                                	                                </tbody>
                            </table>
                        </div>
                        <!-- /.panel-body -->
                    </div>
                    <!-- /.panel -->
                </div>
                <!-- /.col-lg-12 -->
            </div>
            <!-- /.row -->
             </div>
        </div>
        <!-- /#page-wrapper -->
  <div class="modal fade" id="m">
  	<div class="modal-dialog" style="width:350px;">
  		<div class="modal-content">
  			<div class="modal-header">
  				<h4 class="modal-title btn-success">权限操作</h4>
  			</div>
  			<form  id="form">
  			<div class="modal-body">
  					<fieldset>
  						<div class="form-group">
  							<label>用户名</label>
  							<select style="width:100%;" name="aid" id=aid >
  								<option value=0>请选择用户</option>
  								  								<option value="12">leihongbo 雷洪波</option>
  								  								<option value="11">administrator 魏恒</option>
  								  								<option value="9">lianlian 杨练</option>
  								  								<option value="3">xxfxxf 徐秀峰</option>
  								  								<option value="1">admin 管理员</option>
  								  							</select>
  						</div>
  						<div class="form-group">
  							<label>栏目</label>
  							<select style="width:100%;" name="mid" id=mid>
  								<option value=0>请选择栏目</option>
  								  								<option value="1">权限管理</option>
  								  								<option value="2">教职工通讯录</option>
  								  								<option value="3">用户管理</option>
  								  								<option value="4">首页</option>
  								  								<option value="5">学生信息上传</option>
  								  								<option value="6">私人待办事项</option>
  								  								<option value="7">学生信息管理</option>
  								  								<option value="8">学生事务管理</option>
  								  								<option value="9">群组管理</option>
  								  							</select>
  						</div>
  						<div class="form-group">
  							<label>权限</label>
  							<div>
  								<label><input type="checkbox" value="1" name="ins" id="ins">增</label>&nbsp;
  								<label><input type="checkbox" value="1" name="del" id="del">删</label>&nbsp;
  								<label><input type="checkbox" value="1" name="upd" id="upd">改</label>&nbsp;
  								<label><input type="checkbox" value="1" name="sel" id="sel">查</label>
  							</div>
  						</div>
  					</fieldset>
  			</div>
  			<div class="modal-footer" >
  				<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
  				<button type="submit" class="btn btn-primary">保存</button>
  			</div>
  			</form>
  		</div>
  	</div>
  </div>
  
    <div class="modal fade" id="m1">
  	<div class="modal-dialog" style="width:350px;">
  		<div class="modal-content">
  			<div class="modal-header">
  				<h4 class="modal-title btn-success">权限操作</h4>
  			</div>
  			<form  id="form1">
  			<div class="modal-body">
  					<fieldset>
  						<div class="form-group">
  							用户名：<span id="uname"></span>
							<br>姓名：<span id="rname"></span>
  							<br>栏目：<span id="mname"></span>
  						</div>
  						<div class="form-group">
  							<label>权限</label>
  							<div>
  								<label><input type="checkbox" value="1" name="ins" id="ins1">增</label>&nbsp;
  								<label><input type="checkbox" value="1" name="del" id="del1">删</label>&nbsp;
  								<label><input type="checkbox" value="1" name="upd" id="upd1">改</label>&nbsp;
  								<label><input type="checkbox" value="1" name="sel" id="sel1">查</label>
  							</div>
  						</div>
  					</fieldset>
  			</div>
  			<div class="modal-footer" >
  				<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
  				<button type="submit" class="btn btn-primary">保存</button>
  				<input type="hidden" name="amid" id="amid">
  			</div>
  			</form>
  		</div>
  	</div>
  </div>
        <!-- DataTables JavaScript -->
    </div>
    <!-- /#wrapper -->

    <!-- jQuery -->
    <script src="http://cdn.static.runoob.com/libs/jquery/2.1.1/jquery.min.js"></script>

    <!-- Bootstrap Core JavaScript -->
    <script src="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/js/bootstrap.min.js"></script>

    <!-- Metis Menu Plugin JavaScript -->
    <script src="sb2/vendor/metisMenu/metisMenu.min.js"></script>

    <!-- Custom Theme JavaScript -->
    <script src="sb2/dist/js/sb-admin-2.js"></script>

    <script src=js/jquery.xxfset.js></script>
    <script src=js/jquery.form.js></script>
    <script src=js/app.js></script>
<script type="text/javascript">
    var navObj={
    		setting:function(){
    			var str="原密码：<input type='password' name='sys_ypwd' id='sys_ypwd'><br><br>新密码：<input type='password' name='sys_xpwd' id='sys_xpwd'><br><br>";
    			str+="<button class='btn btn-info btn-xs'  id='sys_yes'>确定</button>&nbsp;&nbsp;<button class='btn btn-default btn-xs'  id='sys_close'>取消</button>";
    			$.xcontent(str,function(){
    				$("#sys_close").click(function(){
    					$("#XPOPUPCONTENTC").remove();
    					$("#XPOPUPCONTENT").remove();
    				});
    				$("#sys_yes").click(function(){
    					$ymm=$("#sys_ypwd").val();
    					$xmm=$("#sys_xpwd").val();
    					if($ymm.length<1||$xmm.length<1){
    						$.xalert("信息不能为空！");
    						return;
    					}else{
    						$.xloading(1);
    						$.post($.gu("setting"),{ymm:$ymm,xmm:$xmm,type:'setting'},function(data){
    							$.xloading(0);
    							if(data==0){
    								$.xalert("原密码错误，请重试！");
    							}else if(data==1){
    								alert("密码更新成功，请重新登陆！");
    								location.href=$.gu("out");
    							}else{alert(data);}
    						});
    					}
    				});
    			});
    		},
    		userinfo:function(){
    			var str="真实姓名：<input type='text' name='sys_rname' id='sys_rname' value='徐秀峰'><br><br>";
    			str+="<button class='btn btn-info btn-xs'  id='sys_yes'>确定</button>&nbsp;&nbsp;<button class='btn btn-default btn-xs'  id='sys_close'>取消</button>";
    			$.xcontent(str,function(){
    				$("#sys_close").click(function(){
    					$("#XPOPUPCONTENT").remove();$("#XPOPUPCONTENTC").remove();
    				});
    				$("#sys_yes").click(function(){
    					$rname=$("#sys_rname").val();
    					if($rname.length<2){
    						$.xalert("信息请填写完整！");
    						return;
    					}else{
    						$.xloading(1);
    						$.post($.gu("setting"),{rname:$rname,type:'userinfo'},function(data){
    							$.xloading(0);
    							if(data==0){
    								$.xalert("信息修改失败，请重试！");
    							}else if(data==1){
    								alert("更新成功！");
    								window.location.reload();
    							}else{alert(data);}
    						});
    					}
    				});
    			});
            }
    }
</script>
</body>

</html>    <script src="sb2/vendor/datatables/js/jquery.dataTables.js"></script>
    <script src="sb2/vendor/datatables-plugins/dataTables.bootstrap.min.js"></script>
    <script src="sb2/vendor/datatables-responsive/dataTables.responsive.js"></script>
    <script>
    $(document).ready(function() {
        $('#dataTables-example').DataTable({
            responsive: true,
            "aaSorting": [[ 4, "desc" ]]
        });
        var options = {
                type: 'post',
                data:{'type':'ins'},
    		    url:	$.gu("sysQxManager"),
    		    beforeSubmit:function(){
    		    	if($("#aid").val()==0||$("#mid").val()==0){
    		    		$.xalert("用户名和栏目名必选！");
    		    		return false;
    		    	}
    		    	$.xloading(1);
    		    },
    		    success: function(data) {
    		    	$.xloading(0);
    		    	if(data==0){
    			    	$.xalert('该权限已存在，无需再添加！');
    		    	}else if(data==1){
    		    		window.location.reload();
    		    	}else{
    		    		alert(data);
    		    	}
    		    } };
    	$('#form').ajaxForm(options);

    	var options1 = {
                type: 'post',
                data:{'type':'upd'},
    		    url:	$.gu("sysQxManager"),
    		    beforeSubmit:function(){
    		    	$.xloading(1);
    		    },
    		    success: function(data) {
    		    	$.xloading(0);
    		    	if(data==0){
    			    	$.xalert('更新失败！');
    		    	}else{
    		    		window.location.reload();
    		    	}
    		    } };
    	$('#form1').ajaxForm(options1);
    });
    function append(){
    	$("#m").modal({backdrop:"static",keyboard:false,show:true}).on("hide.bs.modal",function(){$("#form").resetForm();});
    }
    function update(amid){
    	$("#form1").resetForm();
    	$("#m1").modal({backdrop:"static",keyboard:false,show:true});
    	$("#amid").val(amid);
    	$("#uname").html($("#"+amid+" td:eq(0)").text());
    	$("#rname").html($("#"+amid+" td:eq(1)").text());
    	$("#mname").html($("#"+amid+" td:eq(2)").text());
    	$qx=$("#"+amid+" td:eq(3)").text();
    	if($qx.indexOf('查')!=-1){$("#sel1").attr("checked",true);}
    	if($qx.indexOf('增')!=-1){$("#ins1").attr("checked",true);}
    	if($qx.indexOf('删')!=-1){$("#del1").attr("checked",true);}
    	if($qx.indexOf('改')!=-1){$("#upd1").attr("checked",true);}
    }
    function del(amid){
		$.xconfirm("删除后无法恢复，确定要删除此条记录么？",function(data){
 			if(data){
				$.xloading(1);
				$.post($.gu("sysQxManager"),{type:'del',amid:amid},function(data1){
					if(data1==0){
						$.xloading(0);
						$.xalert("删除失败");
					}else{
						window.location.reload();
					}
				}); 
			} 
		});
    }
    </script>